<!-- 主页面 -->
<template>
  <div class="home">
    <LogoPage class="LogoPage"/>
    <el-container style="border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu router>
          <!-- 在Vue 3中，组件的使用方式和属性绑定方式基本一致 -->
          <TreeMenu :tree-data="treeData" />
        </el-menu>
      </el-aside>
      <el-container>
        <el-main>
          <HeadesPage />
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import treeData from "../mock/index.json";
import { defineComponent } from "vue";
import TreeMenu from "../components/TreeMenu";
import HeadesPage from "../views/HeadesPage.vue";
import LogoPage from "../views/LogoPage.vue";
export default defineComponent({
  name: "HomePage",
  components: {
    TreeMenu,
    HeadesPage,
    LogoPage,
  },
  data() {
    return {
      treeData,
    };
  },
});
</script>
<style>
.home{
  height: 100%;

}

.LogoPage{
  margin: 20px;
}
</style>